package com.qiaofang.entity;

import com.qiaofang.common.model.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.LastModifiedBy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 商户logo
 */
@Data
@Entity
@Table(name = "tm_logo")
public class Logo extends BaseDomain {

    @ApiModelProperty("logo所属公司id")
    @Column(name = "logo_merchantid")
    private Long logoMerchantId;

    @ApiModelProperty("logo名")
    @Column(name = "logo_name")
    private String logoName;

    @ApiModelProperty("logo访问地址")
    @Column(name = "logo_url")
    private String logoUrl;

    @ApiModelProperty("位置，1-h5登录页,2-案场登录页，3-案场首页，4-案场退出")
    @Column(name = "logo_type")
    private String logoType;

    @CreatedBy
    @ApiModelProperty("创建人id")
    @Column(name = "create_userid")
    private Long createUserId;

    @LastModifiedBy
    @ApiModelProperty("修改人id")
    @Column(name = "update_userid")
    private Long updateUserId;

    @ApiModelProperty("0-无效，1-有效")
    @Column(name = "del_flag")
    private String delFlag;

}
